{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# XKCDify" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook serves no useful purpose. It just demonstrates a cool matplotlib function which makes a plot look like a hand drawn cartoon, similar to those on xkcd. Read more at jakes post here, \n", "\n", "http://jakevdp.github.io/blog/2013/07/10/XKCD-plots-in-matplotlib/" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "\n", "from skrf.data import ring_slot\n", "\n", "plt.xkcd() # from matplotlib version" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "plt.figure(figsize = (8,6))\n", "ring_slot.plot_s_db(title='Important Results')\n", "plt.ylim(-30,30)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "plt.figure(figsize = (8,6))\n", "ring_slot.plot_s_smith()\n", "plt.title('Important Results')\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python [default]", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.10" } }, "nbformat": 4, "nbformat_minor": 0 }